﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace OpenScrum.db
{
    public class TeamMember
    {
        #region Properties

        public int TeamMemberId { get; set; }
        [Required]
        [MaxLength(1000)]
        public string Name { get; set; } 

        #endregion

        #region Navigation Properties
                
        public virtual ICollection<Project> Projects { get; set; }      
        public virtual ICollection<BacklogItem> BacklogItemsOwned { get; set; }      
        public virtual ICollection<BacklogItem> BacklogItemsCreated { get; set; } 

        #endregion
    }
}
